<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("admin.review.edit")}</title>

<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .text-line {
            line-height: 20px;
        }
    </style>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">首页</a> &raquo; 编辑评价
	</div>
	<form id="inputForm" action="update.htm" method="post">
		<input type="hidden" name="id" value="${review.id}" />
		<table class="input">
            <tr>
                <th>
					会员：
                </th>
                <td>
                    ${review.member.username}（${review.member.name}）
                    [#--<select name="memberId" data-am-selected="{searchBox: 1}">--]
					[#--[#list members as m ]--]
                        [#--<option value="${m.id}" [#if review.member.id==m.id]selected[/#if]></option>--]
					[#--[/#list]--]
                    [#--</select>--]

                </td>
            </tr>
            <tr>
                <th>
                    课程：
                </th>
                <td>
                    ${review.course.title}（${review.course.title}）
                    [#--<select name="courseId" data-am-selected="{searchBox: 1}">--]
					[#--[#list courses as c ]--]
						[#--[#if c.courseType == "finished"]--]
                            [#--<option value="${c.id}" >${c.title}</option>--]
						[#--[/#if]--]
					[#--[/#list]--]
                    [#--</select>--]
                </td>
            </tr>
            <tr>
                <th>
                    服务分：
                </th>
                <td>
                    <select name="serviceScore" >
					[#list score as i]
                        <option value="${i}" [#if review.serviceScore == i]selected[/#if] title="${i}" >${i}</option>
					[/#list]
                    </select>
                </td>
            </tr>
            <tr>
                <th>
                    方案分：
                </th>
                <td>
                    <select name="schemeScore" >
					[#list score as i]
                        <option value="${i}" [#if review.schemeScore == i]selected[/#if] title="${i}" >${i}</option>
					[/#list]
                    </select>
                </td>
            </tr>
            <tr>
                <th>
                    真实情况反馈分：
                </th>
                <td>
                    <select name="feedbackScore" >
					[#list score as i]
                        <option value="${i}" [#if review.feedbackScore == i]selected[/#if] title="${i}" >${i}</option>
					[/#list]
                    </select>
                </td>
            </tr>
			<tr>
				<th>
					评价内容：
				</th>
				<td>
					<textarea class="text text-line" style="width: 400px;height: 200px" name="content" >${review.content}</textarea>
				</td>
			</tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.htm'" />
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/amazeui.min.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

    var $inputForm = $("#inputForm");
    var $browserButton = $("#browserButton");

	[@flash_message /]

    $browserButton.browser();

    // 表单验证
    $inputForm.validate({
        rules: {
            courseId: "required",
            memberId: "required",
            content: "required",
            serviceScore: "required",
            schemeScore: "required",
            feedbackScore: "required"
        }
    });

});
</script>
</html>